Make `Summary::clone` cheap with an inner `Rc`
authorAlex Crichton <alex@alexcrichton.com>
Fri, 2 Jun 2017 13:59:04 +0000 (06:59 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 5 Jun 2017 14:36:44 +0000 (07:36 -0700)
commit0d17d6c4b1e227cea54f4850b7d70534ce85df13
treeeabb8b26affc0085243240135d788f05fe02100a
parent48446574a6b3763f66d9a832481d379451d9ec91
Make `Summary::clone` cheap with an inner `Rc`

This already happens in a few other places in Cargo (e.g. `Dependency`) and
`Summary` cloning turned up high in the profile, so let's make it cheaper.
src/cargo/core/summary.rs